import request from '@/utils/request'

// 查询附件信息列表
export function listAtmAttachment(query) {
  return request({
    url: '/basic/atmAttachment/list',
    method: 'get',
    params: query
  })
}

// 查询附件信息详细
export function getAtmAttachment(attachmentId) {
  return request({
    url: '/basic/atmAttachment/' + attachmentId,
    method: 'get'
  })
}

// 新增附件信息
export function addAtmAttachment(data) {
  return request({
    url: '/basic/atmAttachment',
    method: 'post',
    data: data
  })
}

// 修改附件信息
export function updateAtmAttachment(data) {
  return request({
    url: '/basic/atmAttachment',
    method: 'put',
    data: data
  })
}

// 删除附件信息
export function delAtmAttachment(attachmentId) {
  return request({
    url: '/basic/atmAttachment/' + attachmentId,
    method: 'delete'
  })
}
